<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2020/5/27
 * Time: 18:30
 */

namespace App\Http\Queries;

use Spatie\QueryBuilder\QueryBuilder;
use App\Models\Goods;
use App\Models\Traits\SearchHandler;


class GoodsQuery extends QueryBuilder{

    use SearchHandler;


    public function __construct()
    {
        parent::__construct(Goods::query());

        $this->allowedIncludes('user' , 'userBrowseTotal');

    }


}

